<script type="text/javascript">
    $(function () {
        var gysId = $('#tpfk_gldw_id').combotree('getValue');
        $("#jkd_search_grid").edatagrid({
            url: $.webPath() + "/jhgl/jkd/jkdList?gysId="+gysId,
            checkbox:true,
            fitColumns:true,
            singleSelect:false,
            pagination:true,
            width:733,
            height:285,
            rownumbers:true,
            columns: [
                [
                    {field: 'checked', checkbox: true},
                    {field:'id', title:'ID', hidden:true},
                    {field:'jkdbm', title:'单号', width:24,align: 'center'},
                    {field:'zfsj', title:'支付日期', width:20,align: 'center'},
                    {field:'gys_qc', title:'收款单位', width:25,align: 'center'},
                    {field:'zfkx', title:'支付款项', width:20,align: 'center'},
                    {field:'zffs_z', title:'支付方式', width:20,align: 'center'},
                    {field:'zfje', title:'申请金额', width:20, formatter:function(value){
                        var sl = formatJe2(value,",");
                        return sl;
                    },align: 'right'},
                    {field: 'yfje', title: '已付金额', width: 20, formatter:function(value){
                        var sl = formatJe2(value,",");
                        return sl;
                    },align: 'right'}
                ]
            ]
        });

        $("#btn_jkd_search_init").click(function () {
            jkd_search_init();
        });
    })

    function jkd_search_init() {
        $('#jkd_search_grid').datagrid('load',
                {
                    jkdbm:$('#jkd_jkdbm').val()
                }
        );
    }

</script>
<div id="layout_jkd_search" class="easyui-layout" data-options="fit:true">
    <div data-options="region:'center'">
        <div id="toolbar_jkd_search">
            <div class="textcon">
                <table class="tb">
                    <tr>
                        <th>借款单号：</th><td><input id="jkd_jkdbm" name="jkdbm" type="text"  class="input-text"></td>
                        <td style=" padding-left:5px;"><input id="btn_jkd_search_init" type="button" value="" class="submit"/></td>
                    </tr>
                </table>
            </div>
        </div>
        <table id="jkd_search_grid"></table>
    </div>
</div>